﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys.WMS.Entity;

/// <summary>
/// 下架任务实体.
/// </summary>
[SugarTable("wms_busi_shelf_down","下架任务")]
[Tenant(ClaimConst.TENANTID)]
public class WmsBusiShelfDownEntity : CLDEntityBase
{
    /// <summary>
    /// 出货id.
    /// </summary>
    [SugarColumn(ColumnName = "F_ShippingId", ColumnDescription = "出货id")]
    public string ShippingId { get; set; }

    /// <summary>
    /// 出货编号.
    /// </summary>
    [SugarColumn(ColumnName = "F_ShippingNo", ColumnDescription = "出货编号")]
    public string ShippingNo { get; set; }

    /// <summary>
    /// 下架单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_PickNo", ColumnDescription = "下架单号")]
    public string PickNo { get; set; }

    /// <summary>
    /// 物料id.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialId",ColumnDescription = "物料id")]
    public string MaterialId { get; set; }

    /// <summary>
    /// 物料code.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode",ColumnDescription = "物料code")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// 物料名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialName",ColumnDescription = "物料名称")]
    public string MaterialName { get; set; }

    /// <summary>
    /// 规格.
    /// </summary>
    [SugarColumn(ColumnName = "F_Specification",ColumnDescription = "规格")]
    public string Specification { get; set; }

    /// <summary>
    /// 库位id.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationId",ColumnDescription = "库位id")]
    public string LocationId { get; set; }

    /// <summary>
    /// 库位Code.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationCode",ColumnDescription = "库位Code")]
    public string LocationCode { get; set; }

    /// <summary>
    /// 库位名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationName",ColumnDescription = "库位名称")]
    public string LocationName { get; set; }

    /// <summary>
    /// 数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_Qty",ColumnDescription = "数量")]
    public decimal Qty { get; set; }

    /// <summary>
    /// 单位.
    /// </summary>
    [SugarColumn(ColumnName = "F_Unit",ColumnDescription = "单位")]
    public string Unit { get; set; }

    /// <summary>
    /// 下架类型：1 原材料  3 成品.
    /// </summary>
    [SugarColumn(ColumnName = "F_PickType",ColumnDescription = "下架类型：1 原材料  3 成品")]
    public int? PickType { get; set; }

    /// <summary>
    /// 单据类型：1 出货计划 2 其他出库.
    /// </summary>
    [SugarColumn(ColumnName = "F_OrderType", ColumnDescription = "单据类型：1 出货计划 2 其他出库")]
    public string OrderType { get; set; }

    /// <summary>
    /// 下架状态：0 未下架  1 下架完成.
    /// </summary>
    [SugarColumn(ColumnName = "F_Status",ColumnDescription = "下架状态：0 未下架  1 下架完成")]
    public int? Status { get; set; }

    /// <summary>
    /// 取消时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelDate",ColumnDescription = "取消时间")]
    public DateTime? CancelDate { get; set; }

    /// <summary>
    /// 取消原因.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelReason",ColumnDescription = "取消原因")]
    public string CancelReason { get; set; }

    /// <summary>
    /// 取消人.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelUser",ColumnDescription = "取消人")]
    public string CancelUser { get; set; }

    /// <summary>
    /// Site.
    /// </summary>
    [SugarColumn(ColumnName = "F_Site",ColumnDescription = "Site")]
    public string Site { get; set; }
}